package com.cavy.platform.server.repository;

import com.cavy.platform.server.domain.Pipeline;
import com.cavy.platform.server.dto.PipelineSearchDto;

import java.util.List;

/**
 * @author 唐旭
 * @Date 2018/7/18
 */
public interface PipelineRepository {

    int countByName(String workspace, String projectName, String name);

    void create(Pipeline convert);

    void delete(Pipeline convert);

    List<Pipeline> list(PipelineSearchDto dto);

    Pipeline find(String workspace, String projectName, String pipeline);

    void save(Pipeline pipeline);
}
